From: Wei Liu Date: Mon, 4 Apr 2016 17:34:05 +0000 (+0100) Subject: libxc: colo: don't leak pfns and iov in send_checkpoint_dirty_pfn_list X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1382 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=941cccfb5c2b9022c4a47b3db351a2804f8ec22b;p=xen.git libxc: colo: don't leak pfns and iov in send_checkpoint_dirty_pfn_list Signed-off-by: Wei Liu Acked-by: Ian Jackson --- diff --git a/tools/libxc/xc_sr_restore.c b/tools/libxc/xc_sr_restore.c index 728edbc009..3549f0a1ae 100644 --- a/tools/libxc/xc_sr_restore.c +++ b/tools/libxc/xc_sr_restore.c @@ -494,6 +494,8 @@ static int send_checkpoint_dirty_pfn_list(struct xc_sr_context *ctx) rc = 0; err: + free(pfns); + free(iov); return rc; }